package NowCoder.UnderlyingPrinciple;

import java.util.Arrays;

public class 单选_5_5_17 {
    String str = "hello";
    char[] arr = {'a', 'b'};

    public static void main(String[] args) {
        单选_5_5_17 n1 = new 单选_5_5_17();
        n1.change(n1.str,n1.arr);
        System.out.println("str = " + n1.str);
        System.out.println("arr = " + n1.toString());
    }
    public void change(String str,char[] arr){
        str = "test ok";
        arr[0] = 'c';
    }

    @Override
    public String toString() {
        return "单选_5_5_17{" +
                "str='" + str + '\'' +
                ", arr=" + Arrays.toString(arr) +
                '}';
    }
}
